﻿using Coldairarrow.Util;
using SqlSugar;
using System;

namespace Admin.Core
{
    /// <summary>
    /// 系统记录表（请求日志，异常日志、审计日志、行为日志）
    /// </summary>
    [SugarTable("Base_Log")]
    public partial class BaseLog : SugarEntity<string>
    {
        public BaseLog()
        {
            Id = IdHelper.GetId();
            CreatedTime = DateTime.Now;
        }

        /// <summary>
        /// 请求方式
        /// </summary>
        public String RequestMethod { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>
        public String ExecuteParam { get; set; }

        /// <summary>
        /// 返回结果
        /// </summary>
        public String ExecuteResult { get; set; }

        /// <summary>
        /// 操作主机
        /// </summary>
        public String OperIp { get; set; }

        /// <summary>
        /// 操作地点
        /// </summary>
        public String OperLocation { get; set; }

        /// <summary>
        /// 执行方法
        /// </summary>
        public String OperUrl { get; set; }

        /// <summary>
        /// 客户端环境
        /// </summary>
        public String OperAgent { get; set; }

        /// <summary>
        /// 客户端浏览器
        /// </summary>
        public String OperBrowser { get; set; }

        /// <summary>
        /// 客户端操作系统
        /// </summary>
        public String OperOs { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remark { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public OperateStatusEnum LogStatus { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public virtual String CreatorRealName { get; set; }
    }
}
